{extend name="../../admin/view/main"}

{block name="button"}
<button type="button" data-reload class="layui-btn layui-btn-sm" style="font-size: 14px;">页面刷新</button>
{/block}

{block name="content"}
<div class="layui-tab layui-tab-card think-bg-white">
    <div class="layui-tab-content table-block">
        {include file='user_spin/index_search'}
        <table class="layui-table" lay-skin="line">
            {notempty name='list'}
            <thead>
            <tr>
                <th class='list-table-check-td think-checkbox'>
                    <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
                </th>
                <td class='text-left'>ID</td>
                <th class='text-left'>用户ID</th>
                <th class='text-left'>抽奖类型</th>
                <th class="text-left">抽奖金额</th>
                <th class="text-left">盒子ID</th>
                <th class="text-left">ForgeID</th>
                <th class="text-left">商品ID</th>
                <th class="text-left">商品名称</th>
                <th class="text-left">商品金额</th>
                <th class="text-left">平台盈亏</th>
                <th class="text-left">状态</th>
                <th class="text-left">操作</th>
                <th></th>
            </tr>
            </thead>
            {/notempty}
            <tbody>
            {foreach $list as $key=>$vo}
            <tr>
                <td class='list-table-check-td think-checkbox'>
                    <label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
                </td>
                <td class='text-left '>{$vo.id|default=''}</td>
                <td class='text-left '>{$vo.user_id|default=''}</td>
                <td class="text-left nowrap">
                    {if $vo.spin_type eq 1}<span>盒子</span>
                    {elseif $vo.spin_type eq 2}<span>Forge</span>
                    {/if}
                </td>
                <td class='text-left '>{$vo.spin_amount|default=''}</td>
                <td class='text-left '>{$vo.box_id|default=''}</td>
                <td class='text-left '>{$vo.forge_id|default=''}</td>
                <td class='text-left '>{$vo.product_id|default=''}</td>
                <td class='text-left '>{$vo.product_name|default=''}</td>
                <td class='text-left '>{$vo.product_amount|default=''}</td>
                <td class='text-left '>{$vo.system_profit|default=''}</td>
                <td class="text-left nowrap">
                    {if $vo.status eq 1}<span class="color-red">未命中</span>
                    {elseif $vo.status eq 2}<span class="color-blue">未领取</span>
                    {elseif $vo.status eq 3}<span class="color-green">已兑换余额</span>
                    {elseif $vo.status eq 4}<span class="color-green">已兑换商品</span>
                    {/if}
                </td>
                <td class='text-left '>
                    <a class="layui-btn layui-btn-sm" data-modal="{:url('param')}?id={$vo.id}" data-title="查看参数">{:lang("查看参数")}</a>
                </td>
            </tr>
            {/foreach}
            </tbody>
        </table>
        <div style="margin-top: -5px;">{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
        </div>
    </div>
</div>
{/block}